import http from '@/plugins/axios'

let postLoginCode = (data) => http.post('/code/login', data)

let getPrice = (data) => http.get('/match/trend') // 获取首页每日价格走势

let getMonPrice = (data) => http.get('/match/monthTrend') // 获取首页月度价格走势

let getFeature = (id) => http.get('/match/featured', { // 查询精选厂家
  params: {
    pipeTypeId: id
  }
})

export default {
  postLoginCode,
  getPrice,
  getMonPrice,
  getFeature
}
